import { APP_INITIALIZER } from '@angular/core';
import { AuthService } from './auth.service';


export const OauthInitializerProvider = {
  provide: APP_INITIALIZER,
  useFactory: (oauthSrc: AuthService) => () => {
    return oauthSrc.runInitialLoginSequence();
  },
  deps: [AuthService],
  multi: true,
};
